"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const username = "xiaowang";
//数组中只能存放number数据类型
const array = [1, 2, 3];
const array2 = ["xiaowang"];
//自定义类型
const array3 = [{ id: 1, name: "xiaowang" }];
console.log(array3[0].id);
/**
 * 元组
 */
let users = [1, "xiaowang", "武侯区"];
console.log(users[0]);
/**
 * 枚举
 */
var state;
(function (state) {
    state[state["error"] = 0] = "error";
    state[state["succcess"] = 1] = "succcess";
    state[state["fail"] = 2] = "fail";
    state[state["timeout"] = 3] = "timeout";
})(state || (state = {}));
const order = {
    name: "小米耳机",
    price: 199,
    state: 1
};
if (order.state === state.error) {
}
else if (order.state == state.succcess) {
}
else if (order.state == state.fail) {
}
/**
 * undefined和null
 */
let male;
male = 1;
let address;
address = null;
let age;
age = true;
/**
 * Object表示三种格式
 *
 */
let user = [1, 2, 3];
let user2 = { id: 1 };
let user3 = function () { };
// console.log(user2.id);
// 具体要表示出 对象属性
let user4 = { id: 1, name: "xiaowang" };
/**
 * any类型
 */
let studentName = "xiaowang";
studentName = 1;
studentName = true;
let student = {
    id: 1
};
console.log(student.id);
console.log(student.name);
const box = document.getElementById("app");
